<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="paymentsresellersubscription_v1.html">Payments Reseller Subscription API</a> . <a href="paymentsresellersubscription_v1.partners.html">partners</a> . <a href="paymentsresellersubscription_v1.partners.subscriptions.html">subscriptions</a> . <a href="paymentsresellersubscription_v1.partners.subscriptions.lineItems.html">lineItems</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a line item of a subscription. It should be autenticated with a service account.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates a line item of a subscription. It should be autenticated with a service account.

Args:
  name: string, Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem} (required)
  body: object, The request body.
    The object takes the form of:

{ # Individual line item definition of a subscription.
  &quot;amount&quot;: { # Describes the amount unit including the currency code. # Output only. The price of the product/service in this line item. The amount could be the wholesale price, or it can include a cost of sale based on the contract.
    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. Amount in micros (1_000_000 micros = 1 currency unit)
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Currency codes in accordance with [ISO-4217 Currency Codes] (https://en.wikipedia.org/wiki/ISO_4217). For example, USD.
  },
  &quot;bundleDetails&quot;: { # The bundle details for a line item corresponding to a hard bundle. # Output only. The bundle details for the line item. Only populated if the line item corresponds to a hard bundle.
    &quot;bundleElementDetails&quot;: [ # Output only. The details for each element in the hard bundle.
      { # The details for an element in the hard bundle.
        &quot;product&quot;: &quot;A String&quot;, # Output only. Product resource name that identifies the bundle element. The format is &#x27;partners/{partner_id}/products/{product_id}&#x27;.
        &quot;userAccountLinkedTime&quot;: &quot;A String&quot;, # Output only. The time when this product is linked to an end user.
      },
    ],
  },
  &quot;description&quot;: &quot;A String&quot;, # Output only. Description of this line item.
  &quot;finiteBillingCycleDetails&quot;: { # Details for a subscriptiin line item with finite billing cycles. # Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC.
    &quot;billingCycleCountLimit&quot;: &quot;A String&quot;, # Required. The number of a subscription line item billing cycles after which billing will stop automatically.
  },
  &quot;lineItemFreeTrialEndTime&quot;: &quot;A String&quot;, # Output only. The free trial end time will be populated after the line item is successfully processed. End time of the line item free trial period, in ISO 8061 format. For example, &quot;2019-08-31T17:28:54.564Z&quot;. It will be set the same as createTime if no free trial promotion is specified.
  &quot;lineItemIndex&quot;: 42, # Output only. A unique index of the subscription line item.
  &quot;lineItemPromotionSpecs&quot;: [ # Optional. The promotions applied on the line item. It can be: - an introductory pricing promotion. - a free trial promotion. This feature is not enabled. If used, the request will be rejected. When used as input in Create or Provision API, specify its resource name only.
    { # Describes the spec for one promotion.
      &quot;freeTrialDuration&quot;: { # Describes the length of a period of a time. # Output only. The duration of the free trial if the promotion is of type FREE_TRIAL.
        &quot;count&quot;: 42, # number of duration units to be included.
        &quot;unit&quot;: &quot;A String&quot;, # The unit used for the duration
      },
      &quot;introductoryPricingDetails&quot;: { # The details of a introductory pricing promotion. # Output only. The details of the introductory pricing spec if the promotion is of type INTRODUCTORY_PRICING.
        &quot;introductoryPricingSpecs&quot;: [ # Output only. Specifies the introductory pricing periods.
          { # The duration of an introductory pricing promotion.
            &quot;discountAmount&quot;: { # Describes the amount unit including the currency code. # Output only. The discount amount. The value is positive.
              &quot;amountMicros&quot;: &quot;A String&quot;, # Required. Amount in micros (1_000_000 micros = 1 currency unit)
              &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Currency codes in accordance with [ISO-4217 Currency Codes] (https://en.wikipedia.org/wiki/ISO_4217). For example, USD.
            },
            &quot;discountRatioMicros&quot;: &quot;A String&quot;, # Output only. The discount percentage in micros. For example, 50,000 represents 5%.
            &quot;recurrenceCount&quot;: 42, # Output only. The duration of an introductory offer in billing cycles.
            &quot;regionCode&quot;: &quot;A String&quot;, # Output only. 2-letter ISO region code where the product is available in. Ex. &quot;US&quot;.
          },
        ],
      },
      &quot;promotion&quot;: &quot;A String&quot;, # Required. Promotion resource name that identifies a promotion. The format is &#x27;partners/{partner_id}/promotions/{promotion_id}&#x27;.
      &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the promotion for the spec.
    },
  ],
  &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
  &quot;oneTimeRecurrenceDetails&quot;: { # Details for a ONE_TIME recurrence line item. # Output only. Details only set for a ONE_TIME recurrence line item.
    &quot;servicePeriod&quot;: { # A description of what time period or moment in time the product or service is being delivered over. # Output only. The service period of the ONE_TIME line item.
      &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time of the service period. Time is exclusive.
      &quot;startTime&quot;: &quot;A String&quot;, # Required. The start time of the service period. Time is inclusive.
    },
  },
  &quot;product&quot;: &quot;A String&quot;, # Required. Product resource name that identifies one the line item The format is &#x27;partners/{partner_id}/products/{product_id}&#x27;.
  &quot;productPayload&quot;: { # Specifies product specific payload. # Optional. Product specific payload for this line item.
    &quot;googleHomePayload&quot;: { # Payload specific for Google Home products. # Payload specific to Google Home products.
      &quot;attachedToGoogleStructure&quot;: True or False, # Output only. This identifies whether the subscription is attached to a Google Home structure.
      &quot;googleStructureId&quot;: &quot;A String&quot;, # Optional. Structure identifier on Google side.
      &quot;partnerStructureId&quot;: &quot;A String&quot;, # Optional. This identifies the structure ID on partner side that the subscription should be applied to. Only required when the partner requires structure mapping.
    },
    &quot;googleOnePayload&quot;: { # Payload specific to Google One products. # Product-specific payloads. Payload specific to Google One products.
      &quot;campaigns&quot;: [ # Campaign attributed to sales of this subscription.
        &quot;A String&quot;,
      ],
      &quot;offering&quot;: &quot;A String&quot;, # The type of offering the subscription was sold by the partner. e.g. VAS.
      &quot;salesChannel&quot;: &quot;A String&quot;, # The type of sales channel through which the subscription was sold.
      &quot;storeId&quot;: &quot;A String&quot;, # The identifier for the partner store where the subscription was sold.
    },
    &quot;youtubePayload&quot;: { # Payload specific to Youtube products. # Payload specific to Youtube products.
      &quot;accessEndTime&quot;: &quot;A String&quot;, # Output only. The access expiration time for this line item.
      &quot;partnerEligibilityIds&quot;: [ # The list of eligibility_ids which are applicable for the line item.
        &quot;A String&quot;,
      ],
      &quot;partnerPlanType&quot;: &quot;A String&quot;, # Optional. Specifies the plan type offered to the end user by the partner.
    },
  },
  &quot;recurrenceType&quot;: &quot;A String&quot;, # Output only. The recurrence type of the line item.
  &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the line item.
}

  updateMask: string, Required. The list of fields to update. Only a limited set of fields can be updated. The allowed fields are the following: - `product_payload.googleHomePayload.googleStructureId`
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Individual line item definition of a subscription.
  &quot;amount&quot;: { # Describes the amount unit including the currency code. # Output only. The price of the product/service in this line item. The amount could be the wholesale price, or it can include a cost of sale based on the contract.
    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. Amount in micros (1_000_000 micros = 1 currency unit)
    &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Currency codes in accordance with [ISO-4217 Currency Codes] (https://en.wikipedia.org/wiki/ISO_4217). For example, USD.
  },
  &quot;bundleDetails&quot;: { # The bundle details for a line item corresponding to a hard bundle. # Output only. The bundle details for the line item. Only populated if the line item corresponds to a hard bundle.
    &quot;bundleElementDetails&quot;: [ # Output only. The details for each element in the hard bundle.
      { # The details for an element in the hard bundle.
        &quot;product&quot;: &quot;A String&quot;, # Output only. Product resource name that identifies the bundle element. The format is &#x27;partners/{partner_id}/products/{product_id}&#x27;.
        &quot;userAccountLinkedTime&quot;: &quot;A String&quot;, # Output only. The time when this product is linked to an end user.
      },
    ],
  },
  &quot;description&quot;: &quot;A String&quot;, # Output only. Description of this line item.
  &quot;finiteBillingCycleDetails&quot;: { # Details for a subscriptiin line item with finite billing cycles. # Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC.
    &quot;billingCycleCountLimit&quot;: &quot;A String&quot;, # Required. The number of a subscription line item billing cycles after which billing will stop automatically.
  },
  &quot;lineItemFreeTrialEndTime&quot;: &quot;A String&quot;, # Output only. The free trial end time will be populated after the line item is successfully processed. End time of the line item free trial period, in ISO 8061 format. For example, &quot;2019-08-31T17:28:54.564Z&quot;. It will be set the same as createTime if no free trial promotion is specified.
  &quot;lineItemIndex&quot;: 42, # Output only. A unique index of the subscription line item.
  &quot;lineItemPromotionSpecs&quot;: [ # Optional. The promotions applied on the line item. It can be: - an introductory pricing promotion. - a free trial promotion. This feature is not enabled. If used, the request will be rejected. When used as input in Create or Provision API, specify its resource name only.
    { # Describes the spec for one promotion.
      &quot;freeTrialDuration&quot;: { # Describes the length of a period of a time. # Output only. The duration of the free trial if the promotion is of type FREE_TRIAL.
        &quot;count&quot;: 42, # number of duration units to be included.
        &quot;unit&quot;: &quot;A String&quot;, # The unit used for the duration
      },
      &quot;introductoryPricingDetails&quot;: { # The details of a introductory pricing promotion. # Output only. The details of the introductory pricing spec if the promotion is of type INTRODUCTORY_PRICING.
        &quot;introductoryPricingSpecs&quot;: [ # Output only. Specifies the introductory pricing periods.
          { # The duration of an introductory pricing promotion.
            &quot;discountAmount&quot;: { # Describes the amount unit including the currency code. # Output only. The discount amount. The value is positive.
              &quot;amountMicros&quot;: &quot;A String&quot;, # Required. Amount in micros (1_000_000 micros = 1 currency unit)
              &quot;currencyCode&quot;: &quot;A String&quot;, # Required. Currency codes in accordance with [ISO-4217 Currency Codes] (https://en.wikipedia.org/wiki/ISO_4217). For example, USD.
            },
            &quot;discountRatioMicros&quot;: &quot;A String&quot;, # Output only. The discount percentage in micros. For example, 50,000 represents 5%.
            &quot;recurrenceCount&quot;: 42, # Output only. The duration of an introductory offer in billing cycles.
            &quot;regionCode&quot;: &quot;A String&quot;, # Output only. 2-letter ISO region code where the product is available in. Ex. &quot;US&quot;.
          },
        ],
      },
      &quot;promotion&quot;: &quot;A String&quot;, # Required. Promotion resource name that identifies a promotion. The format is &#x27;partners/{partner_id}/promotions/{promotion_id}&#x27;.
      &quot;type&quot;: &quot;A String&quot;, # Output only. The type of the promotion for the spec.
    },
  ],
  &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the line item. Format: partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
  &quot;oneTimeRecurrenceDetails&quot;: { # Details for a ONE_TIME recurrence line item. # Output only. Details only set for a ONE_TIME recurrence line item.
    &quot;servicePeriod&quot;: { # A description of what time period or moment in time the product or service is being delivered over. # Output only. The service period of the ONE_TIME line item.
      &quot;endTime&quot;: &quot;A String&quot;, # Optional. The end time of the service period. Time is exclusive.
      &quot;startTime&quot;: &quot;A String&quot;, # Required. The start time of the service period. Time is inclusive.
    },
  },
  &quot;product&quot;: &quot;A String&quot;, # Required. Product resource name that identifies one the line item The format is &#x27;partners/{partner_id}/products/{product_id}&#x27;.
  &quot;productPayload&quot;: { # Specifies product specific payload. # Optional. Product specific payload for this line item.
    &quot;googleHomePayload&quot;: { # Payload specific for Google Home products. # Payload specific to Google Home products.
      &quot;attachedToGoogleStructure&quot;: True or False, # Output only. This identifies whether the subscription is attached to a Google Home structure.
      &quot;googleStructureId&quot;: &quot;A String&quot;, # Optional. Structure identifier on Google side.
      &quot;partnerStructureId&quot;: &quot;A String&quot;, # Optional. This identifies the structure ID on partner side that the subscription should be applied to. Only required when the partner requires structure mapping.
    },
    &quot;googleOnePayload&quot;: { # Payload specific to Google One products. # Product-specific payloads. Payload specific to Google One products.
      &quot;campaigns&quot;: [ # Campaign attributed to sales of this subscription.
        &quot;A String&quot;,
      ],
      &quot;offering&quot;: &quot;A String&quot;, # The type of offering the subscription was sold by the partner. e.g. VAS.
      &quot;salesChannel&quot;: &quot;A String&quot;, # The type of sales channel through which the subscription was sold.
      &quot;storeId&quot;: &quot;A String&quot;, # The identifier for the partner store where the subscription was sold.
    },
    &quot;youtubePayload&quot;: { # Payload specific to Youtube products. # Payload specific to Youtube products.
      &quot;accessEndTime&quot;: &quot;A String&quot;, # Output only. The access expiration time for this line item.
      &quot;partnerEligibilityIds&quot;: [ # The list of eligibility_ids which are applicable for the line item.
        &quot;A String&quot;,
      ],
      &quot;partnerPlanType&quot;: &quot;A String&quot;, # Optional. Specifies the plan type offered to the end user by the partner.
    },
  },
  &quot;recurrenceType&quot;: &quot;A String&quot;, # Output only. The recurrence type of the line item.
  &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the line item.
}</pre>
</div>

</body></html>